Split boilerplate generation into separate files per frame format - #65
Merged
Conversation
- Modified frame parser generators (Python, TypeScript, JavaScript, C, C++) to generate multiple files: - A base file with common utilities (checksum, FrameMsgInfo, FrameFormatType enum) - Individual files for each frame format - An index/main file that exports all frame formats - Updated generate_boilerplate.py to use new multi-file generation - Updated generate.py to copy all boilerplate files instead of specific files - Updated test files to use new header names (frame_parsers.h/.hpp) - Regenerated boilerplate files with new multi-file structure Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add boilerplate file generation for each frame format
Split boilerplate generation into separate files per frame format
Dec 3, 2025
rijesha
marked this pull request as ready for review
December 3, 2025 19:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Boilerplate generation now creates individual files for each frame format instead of a single monolithic file, plus a base file with common utilities and an index file for easy importing.
Generated File Structure
frame_base.pybasic_frame.py,tiny_frame.py, ...__init__.pyframe_base.tsBasicFrame.ts,TinyFrame.ts, ...index.tsframe_base.jsBasicFrame.js,TinyFrame.js, ...index.jsframe_base.hbasic_frame.h,tiny_frame.h, ...frame_parsers.hframe_base.hppBasicFrame.hpp,TinyFrame.hpp, ...frame_parsers.hppUsage
Changes
generate_*_multi()functions returning{filename: content}dictsmulti_file=Trueparameterframe_parsers_gen.h→frame_parsers.hOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.